package com.wb3.organizer.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
/**
 * 联系人实体类
 * 主键：con_id, 外键：account, 创建时间：createdDT, 姓名：name, 家庭电话：homePhone, 工作电话：workPhone
 * 地址：address, Email：email, QQ：QQ, 公司：company, 描述：comments
 * @author pharen
 */
@Entity
@Table(name="contact")
public class Contact {

	private int con_id;

	private Account account;

	private long createdDT;

	private String name;

	private String homePhone;

	private String workPhone;

	private String address;

	private String email;

	private String QQ;

	private String company;

	private String comments;

	@Id
	@Column(name="con_id")
	@GeneratedValue(strategy=GenerationType.AUTO)
	public int getCon_id() {
		return con_id;
	}

	public void setCon_id(int con_id) {
		this.con_id = con_id;
	}

	@ManyToOne
	@JoinColumn(name="acc_id")
	public Account getAccount() {
		return account;
	}

	public void setAccount(Account account) {
		this.account = account;
	}

	@Column(name="createdDT")
	public long getCreatedDT() {
		return createdDT;
	}

	public void setCreatedDT(long createdDT) {
		this.createdDT = createdDT;
	}

	@Column(name="name")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name="homePhone")
	public String getHomePhone() {
		return homePhone;
	}

	public void setHomePhone(String homePhone) {
		this.homePhone = homePhone;
	}

	@Column(name="workPhone")
	public String getWorkPhone() {
		return workPhone;
	}

	public void setWorkPhone(String workPhone) {
		this.workPhone = workPhone;
	}

	@Column(name="address")
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	@Column(name="email")
	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@Column(name="QQ")
	public String getQQ() {
		return QQ;
	}

	public void setQQ(String qQ) {
		QQ = qQ;
	}

	@Column(name="company")
	public String getCompany() {
		return company;
	}

	public void setCompany(String company) {
		this.company = company;
	}

	@Column(name="comments")
	public String getComments() {
		return comments;
	}

	public void setComments(String comments) {
		this.comments = comments;
	}

}
